package com.pacai.constructor;

public class Constructor01 {
    public static void main(String[] args) {
        Person jack = new Person("jack", 10);
        System.out.println(jack.name + " " + jack.age);
    }
}

class Person{
    public String name;
    public int age;

    public Person(String name,int age){
        this.name = name;
        this.age = age;
    }

}